#pragma once

#define POWM_SAMPLE_BUF_SZIE    5       // 功率计采样缓冲长度，取值 3 - 1 0

typedef enum {
    POWM_I_HD = 0,
    POWM_I_5A = 1,
    POWM_I_VK = 2,
    POWM_I_VT = 5, 
    POWM_I_IK = 8,
    POWM_I_IT = 11,
    POWM_I_PK = 14,
    POWM_I_PT = 17,
    POWM_I_FG = 20,
    POWM_I_EN = 21,
    POWM_I_SM = 23,
} PowM_UartIndicator;

#define POWM_CUR_MIN    (60)    // 电流最小测量值(由整机噪声决定) 60mA
#define POWM_CUR_MAX    (31000) // 最大31000mA, 功率最大测量值由电流最大值决定。
#define POWM_POW_MIN    (3)     // 功率最小测量值(由整机噪声决定) 3W, 


extern void PowMeterInit(void);
// get current voltage, current and power value
extern void PowMeterGather(short *vol, short *cur, short *pow);
